package com.yuan.blog.constatns;

public interface RedisKey {

    // blog:web:like:1:10 -->给帖子id为10的点赞
    // blog:web:like:2:20 -->给评论id为20的点赞
    String LIKE_KEY = "blog:web:like:%s:%s"; // 第一个$s实体类的类型，第二个百分号实体类的id

    String USER_LIKE_NUM_KEY = "blog:web:user:like:%s";

    String USER_FOLLOWER = "blog:web:follower:%s";

    String USER_FANS = "blog:web:fans:%s";

    String INVITATAION_SCORE = "blog:web:invitataion:score";

    String INVITATAION_PV = "blog:web:invitataion:pv:%s";

    String USER_REMOTE_IP = "blog:web:user:ip:%s-%s";
    String EMAIL_ERROR_KEY = "blog:email:errorEmail";
    String EMAIL_ID_KEY = "blog:email:errorId";
}
